package com.china08.yxyapi.entity.db.sws;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * @author Richard.Wang 站群--学校信息</br>
 *         此表和sws_setting表一一对应.</br>
 *         需要从yx中查询学校的信息,将字段补齐</br>
 *         点击量和总咨询量,从mongodb中的sws统计表总每天统计同步</br>
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "sws_group", catalog = "yxy_sws")
public class SwsGroup extends BaseEntityNoId {

    @Id
    @Column(name = "school_id", nullable = false, columnDefinition = "varchar(32) comment '学校id' ")
    private String schoolId;

    @Column(columnDefinition = "varchar(128) comment '学校名称' ")
    private String schoolName;

    @Column(columnDefinition = "varchar(256) comment '学校校徽' ")
    private String schoolBadge;

    @Column(name = "web_url")
    private String webUrl;

    @Column(columnDefinition = "varchar(256) comment '学校地址' ")
    private String address;

    @Column(columnDefinition = "varchar(32) comment '行政区域:省ID' ")
    private String areaIdProvince;

    @Column(columnDefinition = "varchar(32) comment '行政区域:省名称' ")
    private String areaNameProvince;

    @Column(columnDefinition = "varchar(32) comment '行政区域:市ID' ")
    private String areaIdCity;

    @Column(columnDefinition = "varchar(32) comment '行政区域:市名称' ")
    private String areaNameCity;

    @Column(columnDefinition = "varchar(32) comment '行政区域:地区ID' ")
    private String areaIdDistrict;

    @Column(columnDefinition = "varchar(32) comment '行政区域:地区名称' ")
    private String areaNameDistrict;

    @Column(columnDefinition = "tinyint(1) default 0  comment '是否幼儿园' ")
    private Boolean isSt0 = Boolean.FALSE;

    @Column(columnDefinition = "tinyint(1)  default 0  comment '是否小学' ")
    private Boolean isSt1 = Boolean.FALSE;

    @Column(columnDefinition = "tinyint(1)  default 0  comment '是否初中' ")
    private Boolean isSt2 = Boolean.FALSE;

    @Column(columnDefinition = "tinyint(1)  default 0  comment '是否高中' ")
    private Boolean isSt3 = Boolean.FALSE;

    @Column(columnDefinition = "bigint(11) comment '总点击量' ")
    private Long pv;

    @Column(columnDefinition = "bigint(11) comment '总资讯量' ")
    private Long articleCount;

    @Column(columnDefinition = "datetime comment '最新资讯时间' ")
    private Date latestArticle;

    @Column(name = "is_recommend_province", nullable = false, columnDefinition = "tinyint(1)  default 0 comment '省推荐' ")
    private boolean isRecommendProvince = false;

    @Column(name = "is_recommend_city", nullable = false, columnDefinition = "tinyint(1)  default 0 comment '市推荐' ")
    private boolean isRecommendCity = false;

    @Column(name = "is_recommend_district", nullable = false, columnDefinition = "tinyint(1)  default 0 comment '县推荐' ")
    private boolean isRecommendDistrict = false;

    @Column(columnDefinition = "tinyint(1)  default 0 comment '是否测试学校' ")
    private boolean isTest;

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolBadge() {
        return schoolBadge;
    }

    public void setSchoolBadge(String schoolBadge) {
        this.schoolBadge = schoolBadge;
    }

    public String getWebUrl() {
        return webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAreaIdProvince() {
        return areaIdProvince;
    }

    public void setAreaIdProvince(String areaIdProvince) {
        this.areaIdProvince = areaIdProvince;
    }

    public String getAreaNameProvince() {
        return areaNameProvince;
    }

    public void setAreaNameProvince(String areaNameProvince) {
        this.areaNameProvince = areaNameProvince;
    }

    public String getAreaIdCity() {
        return areaIdCity;
    }

    public void setAreaIdCity(String areaIdCity) {
        this.areaIdCity = areaIdCity;
    }

    public String getAreaNameCity() {
        return areaNameCity;
    }

    public void setAreaNameCity(String areaNameCity) {
        this.areaNameCity = areaNameCity;
    }

    public String getAreaIdDistrict() {
        return areaIdDistrict;
    }

    public void setAreaIdDistrict(String areaIdDistrict) {
        this.areaIdDistrict = areaIdDistrict;
    }

    public String getAreaNameDistrict() {
        return areaNameDistrict;
    }

    public void setAreaNameDistrict(String areaNameDistrict) {
        this.areaNameDistrict = areaNameDistrict;
    }

    public Boolean getIsSt0() {
        return isSt0;
    }

    public void setIsSt0(Boolean isSt0) {
        this.isSt0 = isSt0;
    }

    public Boolean getIsSt1() {
        return isSt1;
    }

    public void setIsSt1(Boolean isSt1) {
        this.isSt1 = isSt1;
    }

    public Boolean getIsSt2() {
        return isSt2;
    }

    public void setIsSt2(Boolean isSt2) {
        this.isSt2 = isSt2;
    }

    public Boolean getIsSt3() {
        return isSt3;
    }

    public void setIsSt3(Boolean isSt3) {
        this.isSt3 = isSt3;
    }

    public Long getPv() {
        return pv;
    }

    public void setPv(Long pv) {
        this.pv = pv;
    }

    public Long getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(Long articleCount) {
        this.articleCount = articleCount;
    }

    public Date getLatestArticle() {
        return latestArticle;
    }

    public void setLatestArticle(Date latestArticle) {
        this.latestArticle = latestArticle;
    }

    public boolean isRecommendProvince() {
        return isRecommendProvince;
    }

    public void setRecommendProvince(boolean isRecommendProvince) {
        this.isRecommendProvince = isRecommendProvince;
    }

    public boolean isRecommendCity() {
        return isRecommendCity;
    }

    public void setRecommendCity(boolean isRecommendCity) {
        this.isRecommendCity = isRecommendCity;
    }

    public boolean isRecommendDistrict() {
        return isRecommendDistrict;
    }

    public void setRecommendDistrict(boolean isRecommendDistrict) {
        this.isRecommendDistrict = isRecommendDistrict;
    }

    public boolean isTest() {
        return isTest;
    }

    public void setTest(boolean isTest) {
        this.isTest = isTest;
    }
}
